<?php $this->load->view('layout/lottery/header') ?>
<div class="lotteryMain">
	<ol class="breadcrumb">
		<li><a href="<?php echo site_url('lottery/index'); ?>">活动列表</a></li>
		<li><a href="<?php echo site_url('lotteryprize/prizeList'), '?lottery_id=', $this->input->get('lottery_id'); ?>">奖品列表</a></li>
		<li>奖品库存</li>
	</ol>
	
	<div class="panel-heading">奖品库存 PRIZES INVENTORY</div>
	<div class="dailyPrize">
	<?php echo $generate; ?>
		<div class="prize-num-wrap prize-form" id="prize-form">
			<div class="prize-num">
				<div class="prize-num-header">
			        <button type="button" class="close cancelBtn"><span>&times;</span></button>
			        <h4 class="prize-num-title" id="myModalLabel">奖品数量</h4>
			    </div>
			    <div class="prize-num-content">
			        <div class="prize-num-edit">
				  		<form class="form-horizontal" id="daily-prize-form">
				  			<input name="date" type="hidden">
	                        <input name="prize_id" type="hidden" value="<?php echo $prize->prize_id;?>">
	                        <input name="lottery_id" type="hidden" value="<?php echo $prize->lottery_id;?>">
				  			<div class="clearfix form-text">
								<div class="form-group clearfix hor2">
								    <label class="control-label">库存数量：</label>
								    <input type="text" class="form-control txt" name="quantity" placeholder="请输入奖品数量" />
								    <span class="error"></span>
								</div>
								<div class="form-group clearfix hor2">
								    <label class="control-label">中奖概率：</label>
								    <input type="text" class="form-control txt" name="probability" placeholder="请输入中奖概率"/>
								    <span class="error"></span>
								</div>
								<div class="form-group clearfix hor2">
								    <label class="control-label">抽奖状态：</label>
								    <select class="txt" name="status">
								    	<option value="1">可抽奖</option>
								    	<option value="2">不可抽奖</option>
								    </select>
								    <span class="error"></span>
								</div>
							</div>
							<div class="clearfix form-btns">
								<button type="submit" class="btn btn-submit">保存</button>
								<a href="javascript:;" class="btn btn-gray cancelBtn">返回</a>
							</div>
						</form>
					</div>
					
			    </div>
			</div>
		</div>
	</div>

	<div class="help">
		<p>帮助中心：</p>
		<p>修改当日数量：双击选择日期</p>
		<p>批量修改抽奖数量：鼠标按住拖选日期</p>
		<p>选择修改抽奖数量：ctrl+单击日历</p>
	</div>
</div>
<?php $this->load->view('layout/lottery/footer') ?>
<?php js('gongying', 'prizeCalendar');?>
